const ENV = process.env.VUE_APP_ENV;
const PUBLIC_PATH = process.env.VUE_APP_PUBLIC_PATH;
const OUT_DIR = process.env.VUE_APP_OUT_DIR;
const ASSETS_DIR = process.env.VUE_APP_ASSETS_DIR;
const INDEX_PATH = process.env.VUE_APP_INDEX_PATH;

module.exports = {
  publicPath: PUBLIC_PATH,
  outputDir: OUT_DIR,
  assetsDir: ASSETS_DIR,
  indexPath: INDEX_PATH,
  lintOnSave: true,
  runtimeCompiler: false,
  // 默认情况下 babel-loader 会忽略所有 node_modules 中的文件。如果你想要通过 Babel 显式转译一个依赖，可以在这个选项中列出来
  productionSourceMap: ENV !== "production",
};
